home *** CD-ROM | disk | FTP | other *** search
- Path: gambier.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c,comp.programming
- Subject: Re: Coding Standards for C using threads
- Date: 5 Mar 1996 12:56:54 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Distribution: inet
- Message-ID: <4hi9qmINN3o9@gambier.ugrad.cs.ubc.ca>
- References: <4hhkps$1qu@onyx.philabs.research.philips.com>
- NNTP-Posting-Host: gambier.ugrad.cs.ubc.ca
- Keywords: Coding Standards/Guidelines for thread-based programming
-
- In article <4hhkps$1qu@onyx.philabs.research.philips.com>,
- Dinesh Verma <dcv@philabs.research.philips.com> wrote:
- >deal with threads or light-weight process programming.
- > We are looking for guidelines that will contain:
- >
- > 1. Any data-structure that could be accessed by multiple threads should be
- >locked before modifying.
- > 2. Any variable that can be shared between two threads must be allocated on
- >the heap and not the stack.
-
- Textbooks, papers and other materials about concurrent programming should
- suffice. Typically, operating systems texts cover this in early chapters. There
- is nothing special about C in this regard; the same guidelines would apply if
- you were doing assembly language or Pascal concurrent programming.
-
- Basically, programmers that don't have experience with concurrent programming
- need to be educated/trained in it; if you already have the training and
- experience, the guidelines are not likely to be that important.
-
- Maybe there is a newsgroup, which has an FAQ, dedicated to concurrent
- programming.
- --
-
-